package com.senven.common.pojo.feign;


import com.senven.common.entity.Logincn;
import com.senven.common.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @BelongsProject: senven-orderfood-parent
 * @BelongsPackage: com.senven.common.pojo.feign
 * @unthor : YSH
 * @date : 2022/8/31 17:26
 */
@FeignClient(value = "senven-orderfood-user")
public interface UserFeign {
    @GetMapping("/user/findUserByUsername")
    public User findByUsername(@RequestParam String username);

    @GetMapping(value = "/user/yonghuLogin")
    public Integer yonghuLogin(@RequestParam String username);

    @PostMapping("/user/findUserByTel")
    public User findUserByTel(@RequestParam String tel);
    @PostMapping(value = "/user/insertLogincn")
    public Integer insertLogincn(@RequestBody Logincn logincn);
}
